package com.lwq.designpattern.structuralPatterns.facadePattern;

/**
 * @ClassName
 * @Description
 * @Author liwq
 * @Date 2021/5/10 15:45
 * @Version 1.0
 */
public class ShapeMaker {

    private Rectangle rectangle;
    private Square square;
    private Circle circle;

    public ShapeMaker() {
        circle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle() {
        circle.draw();
    }

    public void drawRectangle() {
        rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }
}
